package com.uzai.console.mapper;

import com.uzai.console.entity.PyqAutoSend;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PyqAutoSendMapper {
    int deleteById(@Param("id") Long id, @Param("merId") Long merId);

    int deleteBeforeDay(@Param("beforeDay") Integer beforeDay);

    int deleteByGoodsid(@Param("goodsid") Long goodsid);

    int insert(PyqAutoSend record);

    int insertSelective(PyqAutoSend record);

    PyqAutoSend selectById(@Param("id") Long id, @Param("merId") Long merId);

    PyqAutoSend selectByMaxGoodsId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("type") Integer type);

    //List<PyqAutoSend> selectByDeviceUniqueIdAndType(@Param("deviceUniqueId") Long deviceUniqueId, @Param("type") Integer type);

    List<PyqAutoSend> selectByDeviceUniqueIdAndAutoConfigIdAndSendTime(@Param("deviceUniqueId") Long deviceUniqueId, @Param("autoConfigId") Long autoConfigId, @Param("sendTime") Integer sendTime);

    int updateByIdSelective(PyqAutoSend record);

    int updateById(PyqAutoSend record);



}